package com.qrx.struct.linkList.code;

public class LNode<E>{

    E data;

    LNode<E> next;

    LNode<E> prev;

    public LNode(E data, LNode<E> next, LNode<E> prev) {
        this.data = data;
        this.next = next;
        this.prev = prev;
    }

    public E getData() {
        return data;
    }

    public void setData(E data) {
        this.data = data;
    }

    public LNode<E> getNext() {
        return next;
    }

    public void setNext(LNode<E> next) {
        this.next = next;
    }

    public LNode<E> getPrev() {
        return prev;
    }

    public void setPrev(LNode<E> prev) {
        this.prev = prev;
    }
}
